package com.sdry.good.goodWarehouse.service;
import java.util.List;
import javax.annotation.Resource;

import com.sdry.product.prod.entity.LacquerInto;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.sdry.good.goodWarehouse.entity.GoodSortFrame;
import com.sdry.good.goodWarehouse.service.GoodSortFrameService;
import com.sdry.good.goodWarehouse.mapper.GoodSortFrameMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
 *
 *@ClassName: GoodSortFrameService
 *@Description: 成品上架表
 *@Author tdd
 *@Date 2020-03-25 16:05:59
 *@version 1.0
*/
@Service
@Transactional(rollbackFor = Exception.class)
public class GoodSortFrameServiceImpl implements GoodSortFrameService {
	@Resource GoodSortFrameMapper goodSortFrameMapper;
	//声明一个Logger
	private final static Logger logger = LoggerFactory.getLogger(GoodSortFrameServiceImpl.class);
	/** 
	 * 条件查询所有
	 * @param param 实体条件
	 * @return 实体集合
	*/
	public List<GoodSortFrame> queryAllByMution(GoodSortFrame param) {
		return goodSortFrameMapper.queryAllByMution(param);
	}
	/** 
	 * 条件分页查询
	 * @param param 实体条件
	 * @return 实体集合
	*/
	public List<GoodSortFrame> findPageByMution(GoodSortFrame param) {
		return goodSortFrameMapper.findPageByMution(param);
	}
	/** 
	 * 条件查询记录数
	 * @param param 实体条件
	 * @return 实体集合
	*/
	public Integer selectCountByMution(GoodSortFrame param) {
		return goodSortFrameMapper.selectCountByMution(param);
	}
	/** 
	 * 插入返回id
	 * @param param 实体条件
	 * @return 主键id
	*/
	public Long insert(GoodSortFrame param) {
		return goodSortFrameMapper.insert(param);
	}
	/** 
	 * 根据主键更新 返回影响行数
	 * @param param 实体条件
	 * @return 影响行数
	*/
	public Integer update(GoodSortFrame param) {
		return goodSortFrameMapper.update(param);
	}
	/**
	 * 解绑(喷漆线上线表)实体类
	 * @param lacquerInto
	 */
	public Integer untyingLacquerInto(LacquerInto lacquerInto){
		return goodSortFrameMapper.untyingLacquerInto(lacquerInto);
	}
}
